from setuptools import setup, find_packages
import os

# Read README for long description
with open('README.md', 'r', encoding='utf-8') as f:
    long_description = f.read()

# Get version from package
version = {}
with open(os.path.join('pdf2img2html', '__init__.py'), 'r', encoding='utf-8') as f:
    for line in f:
        if line.startswith('__version__'):
            version = line.split('=')[1].strip().strip('\'"')

setup(
    name="pdf2img2html",
    version=version,
    author="Your Name",
    author_email="your.email@example.com",
    description="A desktop application to convert PDF files to interactive HTML documents",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/yourusername/pdf2img2html",
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'PyQt6>=6.5.0',
        'pymupdf>=1.22.5',
        'Pillow>=10.0.0',
        'reportlab>=4.0.4',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Programming Language :: Python :: 3.11',
        'Operating System :: OS Independent',
        'Topic :: Multimedia :: Graphics :: Graphics Conversion',
        'Topic :: Utilities',
    ],
    python_requires='>=3.8',
    entry_points={
        'console_scripts': [
            'pdf2img2html=pdf2img2html.run:main',
        ],
    },
    project_urls={
        'Bug Reports': 'https://github.com/yourusername/pdf2img2html/issues',
        'Source': 'https://github.com/yourusername/pdf2img2html',
    },
)